//package com.example.service.impl;
//
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//import com.example.entity.pojo.Goods;
//import com.example.mapper.GoodsMapper;
//import com.example.service.GoodsService;
//import org.springframework.stereotype.Service;
//import org.springframework.transaction.annotation.Transactional;
//
//@Service
//public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsService {
//    public Goods getGoods(Long id) {
//        return super.getById(id);
//    }
//
//    @Transactional
//    public void saveGoods(Goods goods) {
//        super.save(goods);
////        super.baseMapper.insert(goods);
//    }
//
//    @Transactional
//    public void updateGoods(Goods goods) {
//        super.updateById(goods);
////        super.baseMapper.updateById(goods);
//    }
//
//    @Transactional
//    public void deleteGoods(Long id) {
//        super.removeById(id);
////        super.baseMapper.deleteById(id);
//    }
//}
